<html>
<head><meta charset="utf-8"><title>custom LLVM plugins · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/custom.20LLVM.20plugins.html">custom LLVM plugins</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222269048"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/custom%20LLVM%20plugins/near/222269048" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sirui Mu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/custom.20LLVM.20plugins.html#222269048">(Jan 11 2021 at 08:14)</a>:</h4>
<p>As far as I know, rustc does not support loading custom LLVM plugins like what clang can do with <code>-Xclang -load</code>. Are there any plans on implementing this feature in rustc?</p>



<a name="222280335"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/custom%20LLVM%20plugins/near/222280335" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/custom.20LLVM.20plugins.html#222280335">(Jan 11 2021 at 10:30)</a>:</h4>
<p>You can pass arbitrary LLVM arguments, is that enough?</p>



<a name="222280621"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/custom%20LLVM%20plugins/near/222280621" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sirui Mu <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/custom.20LLVM.20plugins.html#222280621">(Jan 11 2021 at 10:33)</a>:</h4>
<p>No, I checked the full list of available LLVM arguments via <code>rustc -Cllvm-args=-h</code>, and I didn't find an argument that can be used for loading custom plugins</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>